import Vue from 'vue'
import VueRouter from 'vue-router'
import Login from '../views/login'
import Detail from '../views/detail'
import Register from '../views/register'
// 此VueRouter是自己自定义引入暴露出来的，即是自定义的，以下的VueRouter同样是这样
Vue.use(VueRouter)

export default new VueRouter({
  routes: [
    {
      path: '/',
      name: 'login',
      component: Login
    },
    {
      path: '/detail',
      name: 'detail',
      component: Detail
    }, {
      path: '/register',
      name: 'register',
      component: Register
    }
  ]
})
